package com.duanjc.mergemd.service;


import com.duanjc.mergemd.bean.DocumentContent;
import com.duanjc.mergemd.utils.FileCheckUtils;

/**
 * 本类生成不同合并文件类的实例
 *
 * @author cqh
 * @date 2022/03/13 18:49
 */
public class MergeFileFactory {
    public static AbstractMergeFile newInstance(DocumentContent fileContent) {
        /*int choose = fileContent.getChoose();

        switch (choose) {
            case 0:
                FileCheckUtils.checkDestPathFormat(fileContent);
                return new MergeToOneFile(fileContent);
            case 1:
                return new MergeToMultipleFile(fileContent);
            default:
        }
        return new MergeToOneFile(fileContent);*/
        return null;
    }
}
